package com.psy.counseling.controller;



import com.psy.counseling.entity.Question;
import com.psy.counseling.entity.TestQuestion;
import com.psy.counseling.entity.TestResult;
import com.psy.counseling.service.TestquestionService;
import com.psy.counseling.utils.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  一套试题里面删除题目
 * </p>
 *
 * @author 陈灿
 * @since 2022-05-29
 */


@RestController
@RequestMapping("/api/songSheetRel")
public class TestQuestionController {


    @Resource
    private TestquestionService testquestionService;
    @PostMapping("/deleteSong")
    public Result<?> delete(@RequestBody TestQuestion tq) {
        try {
            testquestionService.deleteRel(tq);
        } catch (Exception e) {
            return Result.success(false);
        }
        return Result.success(true);
    }


}

